/**
 * @author Haidar Osman
 */
var MemberArray=function(name)
{
	
	var that=this;
	this.members=[];
	if(name=="attributes")
	{
		this.isMethod=false;
	}
	else{
		this.isMethod=true;
	}
	this.addMember = function(header) {
		var newMember=new Member(header);				
		this.members[this.members.length]= newMember;		
	}
	this.removeMember = function(header) {		
		var i=0;
		for(i=0;i<that.members.length;i++)
		{
			if(that.members[i].name==header)
			{				
				that.members.splice(i,1);
				break;
			}
		}		
	}
	this.getMember=function(header)
	{
		var i=0;
		for(i=0;i<that.members.length;i++)
		{
			if(that.members[i].name==header)
			{				
				return that.members[i];
				break;
			}
		}		
	}
	
}
